package com.gdcp.mapper;

import com.gdcp.beans.Category;
import com.gdcp.beans.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CategoryMapper {

    List<Category> findPageBreakByCondition(Map<String, Object> param);

    List<Category> queryByParentId(@Param(value = "id") Integer id);

    List<Category> queryByAll();

    Integer removeByPrimaryKey(Integer id);

    List<Category> searchInformation(Map<String, Object> param);

    int insert(Category category);

    int updateByPrimaryKey(Category category);

    Category getInformation(Integer id);

    List<Category> queryAllByShopId(@Param(value = "shop_id") Integer shopId);

    List<Category> findPageBreakByConditionByShopId(@Param(value = "shop_id") Integer shop_id);

    List<User> findAll(Map<String, Object> model);

    List<Category> searchInformationByShopId(Map<String, Object> model);

    List<Category> searchSizeByShopId(@Param(value = "shop_id") Integer shop_id);
}
